package com.huanghuai.retail.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huanghuai.retail.common.R;
import com.huanghuai.retail.dto.AddPORepositoryDto;
import com.huanghuai.retail.entity.PORepository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zjh
 * @since 2023-05-04
 */
public interface IPORepositoryService extends IService<PORepository> {

    Boolean savePORepositoryAndGoods(AddPORepositoryDto poRepositoryDto);


    R<List<PORepository>> findAllBillNumber();

    R<Page> getPoGoodsDtoPage(Integer page, Integer pageSize, String startTime, String endTime, String[] typeNames, Integer[] storageIds, String[] billNums, Long[] goodsIds, Long[] typeIds, String[] shopNames);

    R<Map> collectPORepository(String startTime, String endTime, String[] typeName, Integer[] storageId, String[] billNum, Long[] goodsId, Long[] typeId, String[] shopName);
}
